import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './components/Home.vue'
import Exhibition from './components/Exhibition.vue'
import Data from './components/Data.vue'
import Order from './components/Order.vue'
import Role from './components/Role.vue'
import User from './components/User.vue'
import System from './components/System.vue'

Vue.use(VueRouter)

const router = new VueRouter({
    routes: [
        { path: '/', redirect: '/home', component: Home },
        { path: '/exhibition', component: Exhibition },
        { path: '/data', component: Data },
        { path: '/order', component: Order },
        { path: '/role', component: Role },
        { path: '/user', component: User },
        { path: '/system', component: System }
    ]
})

export default router